package com.qf.function.service;

import com.qf.pojo.User;

import java.util.function.BiFunction;

public class BiFunctionTest {
    public static void main(String[] args) {
        BiFunction<String,Integer, User> biFunction = (name,age)->{
            User user =new User();
            user.setName(name);
            user.setAge(age);
            return user;
        };
        User user = biFunction.apply("张三", 18);
        System.out.println(user);
    }
}
